function dab:system/arrow_bundle/storage/pickup_arrow/pickup_loop {index:0}
scoreboard players reset #pickup_arrow.index temp
data remove storage dab:system temp.pickup_arrow

function dab:system/arrow_bundle/storage/add_arrow/new with storage dab:system temp.arrow_item

#reloop
execute if items entity @s hotbar.* *[custom_data~{type:"arrow"}] run function dab:system/arrow_bundle/storage/pickup_arrow/pickup